.home-container {
  background: #f8f9fa;
  min-height: 100vh;
}

.home-header {
  /* background: linear-gradient(135deg, #ff6b35, #ff8c69ef); */
  background: linear-gradient(135deg, #ff6b35, #ff8c69);
  padding: 16px 16px 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 6px;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.location-bar {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  margin-left: 15px;
}

.location-text {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
  margin-left: 10px;
}

.search-section {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
}

.home-search {
  flex: 1;
  height: 40px;
  padding: 0px 16px 0px 16px !important;
  border-radius: 20px !important;
}

.cart-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  color: #fff;
  transition: all 0.3s ease;
}

.cart-icon:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.35);
}

.banner-section {
  margin-bottom: 5px;
}

.banner-item {
  position: relative;
  cursor: pointer;
}

.banner-content {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.banner-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 20px 16px 16px;
  color: white;
}

.banner-badge {
  display: inline-block;
  background: #ff6b35;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
}

.banner-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.banner-sales {
  font-size: 12px;
  opacity: 0.9;
}

.banner-dots .ant-carousel-dots {
  bottom: 8px;
}

.banner-dots .ant-carousel-dots li button {
  background: rgba(255, 255, 255, 0.5);
}

.banner-dots .ant-carousel-dots li.ant-carousel-dots-active button {
  background: white;
}

.category-section {
  background: white;
  margin-bottom: 5px;
  padding: 0px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.category-item:hover {
  background: #f5f5f5;
}

.category-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.category-name {
  font-size: 12px;
  color: #333;
}

.hot-section {
  background: white;
  margin-bottom: 5px;
  padding: 0px 16px 0px 16px;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* .hot-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
} */

.hot-product-item {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}

.hot-product-item:hover {
  transform: translateY(-2px);
}

.hot-product-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.hot-product-info {
  padding: 12px;
}

.hot-product-name {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hot-product-price {
  font-size: 16px;
  font-weight: 600;
  color: #ff6b35;
  margin-bottom: 4px;
}

.hot-product-sales {
  font-size: 12px;
  color: #999;
}

.products-section {
  background: white;
  padding: 0px 16px 0px 16px;
}

.waterfall-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.waterfall-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.2s;
  border: 1px solid #f0f0f0;
}

.product-card:hover {
  transform: translateY(-2px);
}

.product-image {
    width: 100%;
    height: 167px !important;
    object-fit: cover;
}

.product-info {
  padding: 12px;
}

.product-name {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.product-price {
  font-size: 16px;
  font-weight: 600;
  color: #ff6b35;
  margin-bottom: 4px;
}

.product-sales {
  font-size: 12px;
  color: #999;
}

.loading-section {
  text-align: center;
  padding: 20px;
}

.no-more-section {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 100px;
  width: 50px;
  height: 50px;
  margin-right: 50%;
  
  background: #ff6b35;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
  z-index: 1000;
  animation: fadeInUp 0.3s ease-in-out;
}

.back-to-top:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.6);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} 